/* 通用类 */
:root {
    --kawi-scrollbar-hover-color: #545454;
    --kawi-scrollbar-color: #bcbcbc;
    --themecolor: #00FFA3;
  }
  ::-webkit-scrollbar-corner {
    background-color: transparent;
  }
  .always-on-scrollbar .unset-scrollbar::-webkit-scrollbar,
  :not(.unset-scrollbar)::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }
  .always-on-scrollbar .unset-scrollbar::-webkit-scrollbar-thumb,
  :not(.unset-scrollbar)::-webkit-scrollbar-thumb {
    background-color: #cfcfcf;
    background-color: var(--kawi-scrollbar-color);
    border-radius: 4px;
  }
  .always-on-scrollbar .unset-scrollbar::-webkit-scrollbar-thumb:hover,
  :not(.unset-scrollbar)::-webkit-scrollbar-thumb:hover {
    background-color: #6a6a6a;
    background-color: var(--kawi-scrollbar-hover-color);
  }
  .always-on-scrollbar .unset-scrollbar::-webkit-scrollbar-track,
  :not(.unset-scrollbar)::-webkit-scrollbar-track {
    background-color: transparent;
  }
  .win-editor .unset-scrollbar::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }
  .win-editor .unset-scrollbar::-webkit-scrollbar-thumb {
    background-color: #cfcfcf;
    background-color: var(--kawi-scrollbar-color);
    border-radius: 4px;
  }
  .win-editor .unset-scrollbar::-webkit-scrollbar-track {
    background-color: transparent;
  }
  .win-editor .unset-scrollbar::-webkit-scrollbar-thumb {
    background-color: transparent;
  }
  .win-editor .unset-scrollbar:hover::-webkit-scrollbar-thumb {
    background-color: #cfcfcf;
    background-color: var(--kawi-scrollbar-color);
    border-radius: 4px;
  }
  .win-editor .unset-scrollbar:hover::-webkit-scrollbar-thumb:hover {
    background-color: #6a6a6a;
    background-color: var(--kawi-scrollbar-hover-color);
  }
  input[type="checkbox"] {
    border-color: #ededed;
    vertical-align: middle;
  }
  .row {
    display: flex;
    width: 100%;
    box-sizing: border-box;
  }
  .col { 
    display: flex;
    flex-direction: column;
  }
  .between {
    justify-content: space-between;
  }
  .flex-center{ 
    justify-content: center;
    align-items: center;
  }
  .flex1 { 
    flex: 1;
  }



  .disabled {
    pointer-events: none;
    opacity: 0.4;
  }
  button {
    padding: 8px;
    border: none;
    cursor: pointer;
  }
  button.plain,
  button.main {
    padding: 6px 20px;
    border: 1px solid #ccc;
  }
  button.plain {
    background-color: transparent;
  }
  button.main {
    background-color: #000;
    color: #fff;
  }
  .btn {
    background: #23252A;
    border-radius: 8px;
    color: #fff;
    font-family: PingFangSC-Regular, PingFang SC;
  }

  button:hover {
    background-color: #999;
  }


/* loading动画 */
  .progress {
    width: 120px;
    height: 20px;
    background: linear-gradient(var(--themecolor) 0 0) 0/0% no-repeat #000;
    animation: p1 2s infinite linear;
  }
  @keyframes p1 {
    100% {
      background-size: 100%;
    }
  }
/* loading遮罩 */
  .loading {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-color: #fff8;
    display: grid;
    align-items: center;
    justify-content: center;
  }
  

.grid-2col {
    display: grid;
    grid: auto-flow / repeat(2, 1fr);
    align-items: center;
    justify-items: center;
    grid-row-gap: 8px;
  
  }
  
  .color-input {
    border: none;
    background: none;
    padding: 0;
    width: 56px;
    cursor: pointer;
  }
  